from scrapy import cmdline

cmdline.execute("scrapy crawl itcast".split())
# cmdline.execute("scrapy crawl itcast -o itcast.csv".split())